const {default: createKnex} = require('knex');

const knex = createKnex({
    client: 'mysql2',
    version: '8.0',
    connection: {
      host: process.env.X_ESS_HOST,
      port: process.env.X_ESS_PORT,
      user: process.env.X_ESS_USER,
      password: process.env.X_ESS_PASSWORD,
      database: process.env.X_ESS_DATABASE,
    },
  });

  const prefix = 'enterprise_demo_ess';

module.exports.knex = knex;
module.exports.prefix = prefix;


module.exports.TABLE_NAME = {
  contract: `${prefix}_contract`,
};